import 'package:flutter/material.dart';

class MyTheme {
  // #4F4F4F 100%
  static Color mainTextColor = const Color.fromRGBO(79, 79, 79, 1);

  // #A2A6B1
  static Color secondaryTextColor = const Color.fromRGBO(162, 166, 177, 1);

  // #D8D9E0
  static Color secondaryIconColor = const Color.fromRGBO(216, 217, 224, 1);

  // #1684FC 100%
  static Color primaryColor = const Color.fromRGBO(22, 132, 252, 1);
  // #ECF3FF 100%
  static Color lightPrimaryColor = const Color.fromRGBO(236, 243, 255, 1);

  // #946B24 100%
  static Color primaryColorLight = const Color.fromRGBO(148, 107, 36, 1);

  // #C29030 100%
  static Color primaryColorLight2 = const Color.fromRGBO(194, 144, 48, 1);

  // #65370F 100%
  static Color primaryColorDark = const Color.fromRGBO(101, 55, 15, 1);

  // #B7B7B7 100%
  static Color hintTextColor = const Color.fromRGBO(183, 183, 183, 1);

  // #F8F8F8 100%
  static Color inputBackgroundColor = const Color.fromRGBO(248, 248, 248, 1);

  //
  static Color boxShadowColor = const Color.fromRGBO(96, 102, 128, 0.16);

  // #DFDFDF 100%
  static Color inputDisabledBackgroundColor =
      const Color.fromRGBO(223, 223, 223, 1);

  // #EAEAEA 100%
  static Color borderColor = const Color.fromRGBO(234, 234, 234, 1);
  // #F0F0F2
  static Color borderColor2 = const Color.fromRGBO(240, 240, 242, 1);
  // #EEEEEE 100%
  static Color disabledColor = const Color.fromRGBO(238, 238, 238, 1);

  // #F7F6F8
  static Color dividerColor = const Color.fromRGBO(247, 246, 248, 1);

  // #639DF8
  static Color gradientStart = Color.fromRGBO(99, 157, 248, 1);

  // #437DF3
  static Color gradientEnd = Color.fromRGBO(67, 125, 243, 1);

  static MaterialColor get materialWhite => const MaterialColor(
        0xFFFFFFFF,
        <int, Color>{
          50: Color(0xFFFFFFFF),
          100: Color(0xFFFFFFFF),
          200: Color(0xFFFFFFFF),
          300: Color(0xFFFFFFFF),
          400: Color(0xFFFFFFFF),
          500: Color(0xFFFFFFFF),
          600: Color(0xFFFFFFFF),
          700: Color(0xFFFFFFFF),
          800: Color(0xFFFFFFFF),
          900: Color(0xFFFFFFFF),
        },
      );

  static ThemeData lightThemeData = ThemeData(
      brightness: Brightness.light,
      primaryColor: Colors.lightBlue[800],
      dividerColor: dividerColor,
      highlightColor: Colors.transparent,
      appBarTheme: AppBarTheme(
          iconTheme: IconThemeData(color: mainTextColor, size: 24),
          backgroundColor: Colors.white,
          elevation: 0,
          centerTitle: true,
          toolbarHeight: 50,
          toolbarTextStyle: TextStyle(fontSize: 18.0, color: mainTextColor),
          titleTextStyle: TextStyle(fontSize: 18.0, color: mainTextColor)),

      // font
      // fontFamily: 'Georgia',
      //text style
      // textTheme: TextTheme(
      //   headline1: TextStyle(fontSize: 72.0, fontWeight: FontWeight.bold),
      //   headline6: TextStyle(
      //       fontSize: 18.0, fontStyle: FontStyle.normal, color: mainTextColor),
      //   bodyText2: TextStyle(fontSize: 14.0, fontFamily: 'Hind'),
      // ),
      iconTheme: IconThemeData(color: MyTheme.primaryColor, size: 17));

  static ThemeData darkThemeData = ThemeData(
    primarySwatch: MyTheme.materialWhite,
    appBarTheme: AppBarTheme(
        backgroundColor: Colors.white,
        elevation: 1,
        centerTitle: true,
        toolbarHeight: 50,
        titleTextStyle: TextStyle(fontSize: 18, color: MyTheme.mainTextColor)),
    colorScheme: ColorScheme.dark(background: Color.fromRGBO(32, 33, 16, 1)),
  );
}
